import request from '@/utils/request'// 查询菜单下拉树结构


export function getAllConfig() {
  return request({
    url: '/monitor/role/all',
    method: 'get'
  })
}


export function getSelectConfig(id) {
  return request({
    url: '/monitor/role/selectList/' + id,
    method: 'get'
  })
}

export function updateRole(data) {
  return request({
    url: '/monitor/role/update',
    method: 'put',
    data: data
  })
}